'use strict';
const path = require('path');

module.exports = appInfo => {
  const config = exports = {};

  // use for cookie sign key, should change to your own and keep security
  config.keys = appInfo.name + '_1522937585809_2320';

  // add your config here
  config.middleware = [];

  config.view = {
    defaultViewEngine: 'nunjucks',
    defaultExtension: '.html',
  };

  config.security = { csrf: { enable: false } };

  config.mdPath = path.join(appInfo.baseDir, '../md');

  return config;
};
